<?php
/* 
 * ebiz front
 * 
 * exchange center paginate View
 * 
 * @author allen
 * 
 */
?>

                            
                        <!-- 礼品信息开始 -->
                            <?php 
                                foreach ($giftProductInfo as $key => $giftItem) {
                                	if( empty($giftItem["description"]) && !empty($giftItem["url_title"]) ){//网店中存在的产品
                                		$urlTitle = urlencode($giftItem['url_title']);
                            ?>
                            
                            <div class="exchange_item">
                                <div style="float:left;margin-top:15px;margin-left:5px;">
                                    <?php if($key == 0){ ?>
                                    <input type="radio" name="exchangeGoods" checked="checked" value="<?php echo $giftItem["id"]."-".$giftItem["min_ac_points"]."-".$giftItem["exhaust_points"]; ?>" />
                                    <?php }else{ ?>
                                    <input type="radio" name="exchangeGoods" value="<?php echo $giftItem["id"]."-".$giftItem["min_ac_points"]."-".$giftItem["exhaust_points"]; ?>" />
                                    <?php } ?>
                                </div>
                                <div style="float:left;margin-left:20px;cursor:pointer;width:60px;height:60px;" onclick="window.open('/p/<?php echo $urlTitle; ?>');">
                                    <?php if( empty($giftItem["image_path"]) ){ ?>
                                    <img style="width:60px;height:60px;" src="<?php echo ConfigConstants::getDefaultProductImagePath(60); ?>" alt="" />
                                    <?php }else{?>
                                    <img style="width:60px;height:60px;" src="<?php echo $giftItem["image_path"]; ?>" alt="" />
                                    <?php } ?>
                                </div>
                                <div style="float:left;margin-left:20px;">
                                    <div style="text-align:center;width:50px;height:30px;line-height:30px;"><?php echo $giftItem["min_ac_points"]; ?></div>
                                </div>
                                <div style="float:left;margin-left:20px;">
                                    <div style="text-align:center;width:100px;height:30px;line-height:30px;"><?php echo $giftItem["exhaust_points"]; ?></div>
                                </div>
                                <div style="float:left;margin-left:0px;cursor:pointer;" onclick="window.open('/p/<?php echo $urlTitle; ?>');">
                                    <div style="text-align:center;width:200px;height:30px;line-height:30px;"><?php echo $giftItem["title"]; ?></div>
                                </div>
                                <div style="float:left;margin-left:0px;cursor:pointer;" onclick="window.open('/p/<?php echo $urlTitle; ?>');">
                                    <div style="text-align:center;width:260px;height:30px;line-height:30px;"></div>
                                </div>
                                <div class="clear"></div>
                            </div>
                            
                            <?php }else{ ?>
                                
                            <div class="exchange_item">
                                <div style="float:left;margin-top:15px;margin-left:5px;">
                                    <?php if($key == 0){ ?>
                                    <input type="radio" checked="checked" name="exchangeGoods" value="<?php echo $giftItem["id"]."-".$giftItem["min_ac_points"]."-".$giftItem["exhaust_points"]; ?>" />
                                    <?php }else{ ?>
                                    <input type="radio" name="exchangeGoods" value="<?php echo $giftItem["id"]."-".$giftItem["min_ac_points"]."-".$giftItem["exhaust_points"]; ?>" />
                                    <?php } ?>
                                </div>
                                <div style="float:left;margin-left:20px;width:60px;height:60px;">
                                    <?php if( empty($giftItem["image_path"]) ){ ?>
                                    <img style="width:60px;height:60px;" src="<?php echo ConfigConstants::getDefaultProductImagePath(60); ?>" alt="" />
                                    <?php }else{?>
                                    <img style="width:60px;height:60px;" src="<?php echo ConfigConstants::getPrivateImagePath()."/gift/".$giftItem["image_path"]; ?>" alt="" />
                                    <?php } ?>
                                </div>
                                <div style="float:left;margin-left:20px;">
                                    <div style="text-align:center;width:50px;height:30px;line-height:30px;"><?php echo $giftItem["min_ac_points"]; ?></div>
                                </div>
                                <div style="float:left;margin-left:20px;">
                                    <div style="text-align:center;width:100px;height:30px;line-height:30px;"><?php echo $giftItem["exhaust_points"]; ?></div>
                                </div>
                                <div style="float:left;margin-left:0px;">
                                    <div style="text-align:center;width:200px;height:30px;line-height:30px;"><?php echo $giftItem["title"]; ?></div>
                                </div>
                                <div style="float:left;margin-left:0px;">
                                    <div style="text-align:center;width:260px;height:30px;line-height:30px;"><?php echo $giftItem["description"]; ?></div>
                                </div>
                                <div class="clear"></div>
                            </div>
                                
                            <?php 
                                }
                                    } 
                            ?>
                        <!-- 礼品信息结束 -->
                        
                        <!-- 分页开始 -->
                            <div class='p2_page'><?php echo $headerPaginate; ?></div>
                        <!-- 分页结束 -->
                        
                        
